﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DTO;
using DAO;
namespace BUS
{
    public class KhachHangBUS
    {
        public List<KhachHangDTO> LayDanhSachKhachHang()
        {
            KhachHangDAO khDAO = new KhachHangDAO();
            return khDAO.LayDanhSachKhachHang();
        }
        public string ThemKhachHang(KhachHangDTO khDTO)
        {
            KhachHangDAO khDAO = new KhachHangDAO();
            return khDAO.ThemKhachHang(khDTO);
        }
        public int LayMaKhachHang()
        {
            KhachHangDAO khDAO = new KhachHangDAO();
            return khDAO.LayMaKhachHang();
        }
        public int KiemTraTonTaiKhachHang(string tenkh, string sdt, string diachi)
        {
            KhachHangDAO khDAO = new KhachHangDAO();
            return khDAO.KiemTraTonTaiKhachHang(tenkh, sdt, diachi);
        }
        public string XoaKhachHang(int maKH)
        {
            KhachHangDAO khDAO = new KhachHangDAO();
            return khDAO.XoaKhachHang(maKH);
        }
    }
}
